package com.neusoft.databus.core.constant;

public class DatabusCoreConstant {

    /** 网关编码前缀 */
    public static final String GATEWAY_CODE_PREFIX = "GW_";
    /** 资源编码前缀 */
    public static final String RESOURCE_CODE_PREFIX = "RS_";
    /** 指标组编码前缀 */
    public static final String METRIC_GROUP_CODE_PREFIX = "MG_";
    /** 指标编码前缀 */
    public static final String METRIC_CODE_PREFIX = "MT_";

    /** 监控数据事件总线标识 */
    public static final String MONITOR_DATA_EVENTBUS_ID = "data-ebus";
    /** Model数据更新事件总线标识 */
    public static final String MODEL_UPDATE_EVENTBUS_ID = "model-ebus";

    /** quartz任务名分隔符 */
    public static final String QUARTZ_JOB_NAME_SPLITOR = "@";

    /** 采集任务节点路由缓存名 */
    public static final String CACHE_NAME_AGENT_SERVICE_NODE_ROUTE = "alm";

    /** dictionary常量缓存(REDIS或EHCACHE)名 */
    public static final String CACHE_NAME_DICTIONARY = "dictionary";

    /** 常量code,text分隔符 */
    public static final String DICTIONARY_SPLITOR = "_";

    /** 导出分隔符 */
    public static final String EXPORT_SPLITOR = "导出_";

    public static final String GATEWAY_TPL_COLUMN_1 = "网关名称";
    public static final String GATEWAY_TPL_COLUMN_2 = "网关连接方式";
    public static final String GATEWAY_TPL_COLUMN_3 = "网关连接信息";
    public static final String GATEWAY_TPL_COLUMN_4 = "网关工作模式";
    public static final String GATEWAY_TPL_COLUMN_5 = "建立连接的超时时间";
    public static final String GATEWAY_TPL_COLUMN_6 = "连接失败后的重试次数";

    public static final String[] GATEWAY_TPL_COLUMN =
            {DatabusCoreConstant.GATEWAY_TPL_COLUMN_1, DatabusCoreConstant.GATEWAY_TPL_COLUMN_2,
                    DatabusCoreConstant.GATEWAY_TPL_COLUMN_3, DatabusCoreConstant.GATEWAY_TPL_COLUMN_4,
                    DatabusCoreConstant.GATEWAY_TPL_COLUMN_5, DatabusCoreConstant.GATEWAY_TPL_COLUMN_6 };

    public static final String RESOURCE_TPL_COLUMN_1 = "资源名称";
    public static final String RESOURCE_TPL_COLUMN_2 = "资源类型";
    public static final String RESOURCE_TPL_COLUMN_3 = "资源拓展属性";
    public static final String RESOURCE_TPL_COLUMN_4 = "网关编码";
    public static final String RESOURCE_TPL_COLUMN_5 = "指标组编码";
    public static final String RESOURCE_TPL_COLUMN_6 = "子系统设备编号";

    public static final String[] RESOURCE_TPL_COLUMN =
            {DatabusCoreConstant.RESOURCE_TPL_COLUMN_1, DatabusCoreConstant.RESOURCE_TPL_COLUMN_2,
                    DatabusCoreConstant.RESOURCE_TPL_COLUMN_3,
                    DatabusCoreConstant.RESOURCE_TPL_COLUMN_4, DatabusCoreConstant.RESOURCE_TPL_COLUMN_5,
                    DatabusCoreConstant.RESOURCE_TPL_COLUMN_6 };

    public static final String METRIC_TPL_COLUMN_1 = "指标组名称";
    public static final String METRIC_TPL_COLUMN_2 = "协议类型";
    public static final String METRIC_TPL_COLUMN_3 = "指标组拓展配置";
    public static final String METRIC_TPL_COLUMN_4 = "指标名称";
    public static final String METRIC_TPL_COLUMN_5 = "指标标识符";
    public static final String METRIC_TPL_COLUMN_6 = "指标值数据类型";
    public static final String METRIC_TPL_COLUMN_7 = "指标采集指令";
    public static final String METRIC_TPL_COLUMN_8 = "指标表达式";
    public static final String METRIC_TPL_COLUMN_9 = "截取开始字节";
    public static final String METRIC_TPL_COLUMN_10 = "截取字节数";
    public static final String METRIC_TPL_COLUMN_11 = "截取开始位数";
    public static final String METRIC_TPL_COLUMN_12 = "截取位数";
    public static final String METRIC_TPL_COLUMN_13 = "数值精度";
    public static final String METRIC_TPL_COLUMN_14 = "指标单位";

    public final static String[] METRIC_TPL_COLUMN =
            {DatabusCoreConstant.METRIC_TPL_COLUMN_1,
                    DatabusCoreConstant.METRIC_TPL_COLUMN_2,
                    DatabusCoreConstant.METRIC_TPL_COLUMN_3,
                    DatabusCoreConstant.METRIC_TPL_COLUMN_4,
                    DatabusCoreConstant.METRIC_TPL_COLUMN_5,
                    DatabusCoreConstant.METRIC_TPL_COLUMN_6,
                    DatabusCoreConstant.METRIC_TPL_COLUMN_7,
                    DatabusCoreConstant.METRIC_TPL_COLUMN_8,
                    DatabusCoreConstant.METRIC_TPL_COLUMN_9,
                    DatabusCoreConstant.METRIC_TPL_COLUMN_10,
                    DatabusCoreConstant.METRIC_TPL_COLUMN_11,
                    DatabusCoreConstant.METRIC_TPL_COLUMN_12,
                    DatabusCoreConstant.METRIC_TPL_COLUMN_13,
                    DatabusCoreConstant.METRIC_TPL_COLUMN_14
            };

    public static final String TPL_NAME_GATEWAY = "网关导入模版";
    public static final String TPL_NAME_RESOURCE = "资源导入模版";
    public static final String TPL_NAME_METRIC = "指标导入模版";
}
